package com.solomon.travel.common.po;

import java.util.ArrayList;
import java.util.List;

public class DiningRoomExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DiningRoomExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andObjectIdIsNull() {
            addCriterion("objectId is null");
            return (Criteria) this;
        }

        public Criteria andObjectIdIsNotNull() {
            addCriterion("objectId is not null");
            return (Criteria) this;
        }

        public Criteria andObjectIdEqualTo(String value) {
            addCriterion("objectId =", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdNotEqualTo(String value) {
            addCriterion("objectId <>", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdGreaterThan(String value) {
            addCriterion("objectId >", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdGreaterThanOrEqualTo(String value) {
            addCriterion("objectId >=", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdLessThan(String value) {
            addCriterion("objectId <", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdLessThanOrEqualTo(String value) {
            addCriterion("objectId <=", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdLike(String value) {
            addCriterion("objectId like", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdNotLike(String value) {
            addCriterion("objectId not like", value, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdIn(List<String> values) {
            addCriterion("objectId in", values, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdNotIn(List<String> values) {
            addCriterion("objectId not in", values, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdBetween(String value1, String value2) {
            addCriterion("objectId between", value1, value2, "objectId");
            return (Criteria) this;
        }

        public Criteria andObjectIdNotBetween(String value1, String value2) {
            addCriterion("objectId not between", value1, value2, "objectId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdIsNull() {
            addCriterion("houtelId is null");
            return (Criteria) this;
        }

        public Criteria andHoutelIdIsNotNull() {
            addCriterion("houtelId is not null");
            return (Criteria) this;
        }

        public Criteria andHoutelIdEqualTo(String value) {
            addCriterion("houtelId =", value, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdNotEqualTo(String value) {
            addCriterion("houtelId <>", value, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdGreaterThan(String value) {
            addCriterion("houtelId >", value, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdGreaterThanOrEqualTo(String value) {
            addCriterion("houtelId >=", value, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdLessThan(String value) {
            addCriterion("houtelId <", value, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdLessThanOrEqualTo(String value) {
            addCriterion("houtelId <=", value, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdLike(String value) {
            addCriterion("houtelId like", value, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdNotLike(String value) {
            addCriterion("houtelId not like", value, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdIn(List<String> values) {
            addCriterion("houtelId in", values, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdNotIn(List<String> values) {
            addCriterion("houtelId not in", values, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdBetween(String value1, String value2) {
            addCriterion("houtelId between", value1, value2, "houtelId");
            return (Criteria) this;
        }

        public Criteria andHoutelIdNotBetween(String value1, String value2) {
            addCriterion("houtelId not between", value1, value2, "houtelId");
            return (Criteria) this;
        }

        public Criteria andIntroIsNull() {
            addCriterion("intro is null");
            return (Criteria) this;
        }

        public Criteria andIntroIsNotNull() {
            addCriterion("intro is not null");
            return (Criteria) this;
        }

        public Criteria andIntroEqualTo(String value) {
            addCriterion("intro =", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotEqualTo(String value) {
            addCriterion("intro <>", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroGreaterThan(String value) {
            addCriterion("intro >", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroGreaterThanOrEqualTo(String value) {
            addCriterion("intro >=", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLessThan(String value) {
            addCriterion("intro <", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLessThanOrEqualTo(String value) {
            addCriterion("intro <=", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLike(String value) {
            addCriterion("intro like", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotLike(String value) {
            addCriterion("intro not like", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroIn(List<String> values) {
            addCriterion("intro in", values, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotIn(List<String> values) {
            addCriterion("intro not in", values, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroBetween(String value1, String value2) {
            addCriterion("intro between", value1, value2, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotBetween(String value1, String value2) {
            addCriterion("intro not between", value1, value2, "intro");
            return (Criteria) this;
        }

        public Criteria andImage_1IsNull() {
            addCriterion("image_1 is null");
            return (Criteria) this;
        }

        public Criteria andImage_1IsNotNull() {
            addCriterion("image_1 is not null");
            return (Criteria) this;
        }

        public Criteria andImage_1EqualTo(String value) {
            addCriterion("image_1 =", value, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1NotEqualTo(String value) {
            addCriterion("image_1 <>", value, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1GreaterThan(String value) {
            addCriterion("image_1 >", value, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1GreaterThanOrEqualTo(String value) {
            addCriterion("image_1 >=", value, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1LessThan(String value) {
            addCriterion("image_1 <", value, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1LessThanOrEqualTo(String value) {
            addCriterion("image_1 <=", value, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1Like(String value) {
            addCriterion("image_1 like", value, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1NotLike(String value) {
            addCriterion("image_1 not like", value, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1In(List<String> values) {
            addCriterion("image_1 in", values, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1NotIn(List<String> values) {
            addCriterion("image_1 not in", values, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1Between(String value1, String value2) {
            addCriterion("image_1 between", value1, value2, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_1NotBetween(String value1, String value2) {
            addCriterion("image_1 not between", value1, value2, "image_1");
            return (Criteria) this;
        }

        public Criteria andImage_2IsNull() {
            addCriterion("image_2 is null");
            return (Criteria) this;
        }

        public Criteria andImage_2IsNotNull() {
            addCriterion("image_2 is not null");
            return (Criteria) this;
        }

        public Criteria andImage_2EqualTo(String value) {
            addCriterion("image_2 =", value, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2NotEqualTo(String value) {
            addCriterion("image_2 <>", value, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2GreaterThan(String value) {
            addCriterion("image_2 >", value, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2GreaterThanOrEqualTo(String value) {
            addCriterion("image_2 >=", value, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2LessThan(String value) {
            addCriterion("image_2 <", value, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2LessThanOrEqualTo(String value) {
            addCriterion("image_2 <=", value, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2Like(String value) {
            addCriterion("image_2 like", value, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2NotLike(String value) {
            addCriterion("image_2 not like", value, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2In(List<String> values) {
            addCriterion("image_2 in", values, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2NotIn(List<String> values) {
            addCriterion("image_2 not in", values, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2Between(String value1, String value2) {
            addCriterion("image_2 between", value1, value2, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_2NotBetween(String value1, String value2) {
            addCriterion("image_2 not between", value1, value2, "image_2");
            return (Criteria) this;
        }

        public Criteria andImage_3IsNull() {
            addCriterion("image_3 is null");
            return (Criteria) this;
        }

        public Criteria andImage_3IsNotNull() {
            addCriterion("image_3 is not null");
            return (Criteria) this;
        }

        public Criteria andImage_3EqualTo(String value) {
            addCriterion("image_3 =", value, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3NotEqualTo(String value) {
            addCriterion("image_3 <>", value, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3GreaterThan(String value) {
            addCriterion("image_3 >", value, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3GreaterThanOrEqualTo(String value) {
            addCriterion("image_3 >=", value, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3LessThan(String value) {
            addCriterion("image_3 <", value, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3LessThanOrEqualTo(String value) {
            addCriterion("image_3 <=", value, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3Like(String value) {
            addCriterion("image_3 like", value, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3NotLike(String value) {
            addCriterion("image_3 not like", value, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3In(List<String> values) {
            addCriterion("image_3 in", values, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3NotIn(List<String> values) {
            addCriterion("image_3 not in", values, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3Between(String value1, String value2) {
            addCriterion("image_3 between", value1, value2, "image_3");
            return (Criteria) this;
        }

        public Criteria andImage_3NotBetween(String value1, String value2) {
            addCriterion("image_3 not between", value1, value2, "image_3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}